﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FortuneHeaven.Entity.GameScore;
using Jzy.Core.Common;
using FortuneHeaven.DAL.GameScore;

namespace FortuneHeaven.BLL.GameScore
{
    public class GameScoreBO : CommonOperate<GameScoreInfo>
    {
        private GameScoreDAL _gameScore;
        public GameScoreBO()
        {
            _gameScore = new GameScoreDAL();
            base.dbOper = _gameScore.dbOper;
        }

        public override List<GameScoreInfo> GetList(IEnumerable<int> ids)
        {
            return _gameScore.GetList(ids);
        }

        public GameScoreInfo GetInfoByUserID(int userID)
        {
            return _gameScore.GetInfoByUserID(userID);
        }

        public long GetScoreWithLock(int userID)
        {
            return _gameScore.GetScoreWithLock(userID);
        }

        public void UpdateScore(int userID, long score)
        {
            _gameScore.UpdateScore(userID, score);
        }


        public bool InGame(int accountID)
        {
            return _gameScore.InGame(accountID);
            
        }
    }

}
